import { getBusWeiAdd,getBusWeiEdit,getBusWeiDel,getBusWeiList } from '@/api/businessWeight'
import { getBusList, getBusSel } from '../../../api/businessWeight'

export default {
  namespaced: true, // 封闭
  state: {},
  mutations: {},
  getters: {},
  actions: {
    async getBusWeiList(context, payload) {
      try {
        const { data } = await getBusWeiList(payload)
        //console.log(data)
        return data
      } catch (err) {
        console.log(err)
      }
    },
    async getBusWeiAdd(context, payload) {
      try {
        const { data } = await getBusWeiAdd(payload)
        //console.log(data)
        return data
      } catch (err) {
        console.log(err)
      }
    },
    async getBusWeiEdit(context, payload) {
      try {
        const { data } = await getBusWeiEdit(payload)
        //console.log(data)
        return data
      } catch (err) {
        console.log(err)
      }
    },

    async getBusWeiDel(context, payload) {
      try {
        const { data } = await getBusWeiDel(payload)
        //console.log(data)
        return data
      } catch (err) {
        console.log(err)
      }
    },
    async getBusList(context, payload) {
      try {
        const { data } = await getBusList(payload)
        //console.log(data)
        return data
      } catch (err) {
        console.log(err)
      }
    },
    
  }
}